#!/bin/bash

host=127.0.0.1
port=6379
passwd=false
count=2
size=10
thrd=8

logfile="result-"$host".log"
echo "start set test " > $logfile
echo "start get test " > $logfile 

for t in  2 4 8 
do
    for i in {1..12}
    do
    echo "running test size $i"
    echo "============================== set $i , $t ==========================" >> $logfile
    ./bin/asyncredis $host $port $passwd $count $i $t 1 >> $logfile

    echo "============================== get $i , $t ==========================" >> $logfile
    ./bin/asyncredis $host $port $passwd $count $i $t 0 >> $logfile
    done
done 
